using System.Collections.Generic;
using UnityEngine;

namespace Yoozoo.Gameplay.RTS
{
    public class RTSTestFormation
    {
        private static string saber = "80000";
        private static string rider = "30000";
        private static string lancer = "1000";
        private static string archer = "1000";
        public static void OnGUI()
        {
            float startY = 150;
            float yinterval = 55;
            float startX = 200;
            saber = GUI.TextField(new Rect(startX, startY, 100, 50),saber);
            startY += yinterval;
            rider = GUI.TextField(new Rect(startX, startY, 100, 50),rider);
            startY += yinterval;
            lancer = GUI.TextField(new Rect(startX, startY, 100, 50), lancer);
            startY += yinterval;
            archer = GUI.TextField(new Rect(startX, startY, 100, 50),archer);
            startY += yinterval;
            if (GUI.Button(new Rect(startX, startY, 100, 50), "Create"))
            {
                int saberNum = 0;
                int.TryParse(saber, out saberNum);
                int riderNum = 0;
                int.TryParse(rider, out riderNum);
                int lancerNum = 0;
                int.TryParse(lancer, out lancerNum);
                int archerNum = 0;
                int.TryParse(archer, out archerNum);
                //RTSTest.CreateArmyTest(list);
            }
        }
    }
}